using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class AssetCollection
{
    protected List<AssetBundleBuild> builds;
    public string findPath;
    public virtual string fileExtensions
    {
        get;
    }

    public CollectStatus collectStatus;
    public AssetBundleBuild[] GetAssetBuild()
    {
        return builds.ToArray();
    }

    public enum CollectStatus 
    {
        None,
        Started,
        Collected,
        Ended,
    }
    public void StartCollect()
    {
        collectStatus = CollectStatus.Started;
        CollectAsset();
        if (collectStatus == CollectStatus.Started)
        {
            Debug.LogError($"Collect failed......");
            return;
        }

        CollectDone();
    }

    public virtual void CollectDone()
    {
        collectStatus = CollectStatus.Ended;
    }
    public virtual void CollectAsset()
    {
        collectStatus = CollectStatus.Collected;
    }
    
    
}
